/**@file    app.c
 * @brief
 * 
 * @author SealedGhost
 */
 
 
#include "app.h"

#include <stdio.h>



/** Define task priority */
#define TASK_PRIO_TEST   2



/** Define task stack size */
#define TASK_STK_SIZE_TEST     80




/** Create task stack */
static OS_STK testTaskStk[TASK_STK_SIZE_TEST];



static void testTask(void* arg)
{
	while(1)
	{
		printf("Task running...\n");
		OSTimeDlyHMSM(0, 0, 2, 0);
	}
}




void initApp()
{
	OSInit();
	
	//TODO: 创建人任务
	OSTaskCreate(testTask,
				(void*)0,
				&testTaskStk[TASK_STK_SIZE_TEST -1],
				TASK_PRIO_TEST
				);
	
	OSStart();
}